package com.zretc.service;

import com.github.pagehelper.PageInfo;
import com.zretc.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public interface OrderService {
    /**
     * 通过用户编号查询订单信息
     * @param accountId
     * @return
     */
    List<Map<String,Object>> getOrder(String accountId);

    /**
     * 根据各种情况查询
     * @author 魏星光
     * @param params
     * @return
     */
    PageInfo<Order> getOrderDetail(Map<String,String> params);

    /**
     * 根据订单编号删除订单
     * @author 魏星光
     * @param orderId
     * @return
     */
    boolean delOrderByOrderId(String orderId);

    /**
     * 根据订单编号修改订单状态
     * @author 魏星光
     * @param orderId
     * @return
     */
    boolean updateStateByOrderId( String orderId,  int isDelete);
}
